<template>
    <div class="box">
        <el-result icon="success" title="支付完成" sub-title="欢迎下次光临" style="font-size:50px">
            <template #extra>
                <a href="/"><el-button type="primary" >回到首页</el-button></a>
            </template>
        </el-result>
    </div>

</template>

<script setup>
import { ref, defineEmits } from 'vue'
const emits = defineEmits(['update']);
const status = () => {
    emits('update', 2);
}
status();
</script>

<style scoped>
a{
    text-decoration: none;
}

</style>